<template>
  <el-menu-item :index="path" :key="path">
    <template #title>
      <i :class="icon"></i>
      <span>{{ title }}</span>
    </template>
  </el-menu-item>
</template>

<script>
export default {
  name: 'ItemView',
  props: {
    path: {
      type: String,
      require: true,
      default: ''
    },
    icon: {
      type: String
    },
    title: {
      type: String
    }
  }
}
</script>

<style scoped>

</style>
